<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>
	<f:event listener="#{productController.initWithoutCheck}"
		type="preRenderComponent"></f:event>
	<p:dataTable id="catalogueListDataTable" value="#{productModel.list}" var="product" paginator="true" rows="20" rowsPerPageTemplate="5,7,10,15,20,30,40,50"
		paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}">
	
		<p:column>
			<p:commandLink oncomplete="productInfoDlg.show()"
				update=":dialogForm" type="button">
				<f:setPropertyActionListener value="#{product}"
					target="#{productController.modelCurrent}" />
				<h:graphicImage library="images" value="../#{product.icon}32.png"></h:graphicImage>
			</p:commandLink>
		</p:column>
		<p:column sortBy="#{product.nameLabel}" headerText="#{msgs.productName}">
			<h:outputText value="#{product.nameLabel}"></h:outputText>
		</p:column>
		<p:column sortBy="#{product.source.label}" headerText="#{msgs.source}">
			<h:outputText value="#{product.source.label}"></h:outputText>
		</p:column>
	</p:dataTable>
<p:effect event="load" type="slide" for="catalogueListDataTable" speed="300" ></p:effect>
</ui:composition>
</html>